import { http, Method } from "@/utils/request.js";

export function storeHome(data) {
  return http.request({
    url: `/yzfl/storeAdmin/storeHome`,
    method: "POST",
    data,
  });
}

export function storeOrderList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/storeOrderList`,
    method: "POST",
    data,
  });
}

export function storeData(data) {
  return http.request({
    url: `/yzfl/storeAdmin/storeData`,
    method: "POST",
    data,
  });
}

export function updStoreData(data) {
  return http.request({
    url: `/yzfl/storeAdmin/updStoreData`,
    method: "POST",
    data,
  });
}

export function storeBanner(data) {
  return http.request({
    url: `/yzfl/storeAdmin/storeBanner`,
    method: "POST",
    data,
  });
}

export function addStoreBanner(data) {
  return http.request({
    url: `/yzfl/storeAdmin/addStoreBanner`,
    method: "POST",
    data,
  });
}

export function delStoreBanner(data) {
  return http.request({
    url: `/yzfl/storeAdmin/delStoreBanner`,
    method: "POST",
    data,
  });
}

export function balanceWithdrawal(data) {
  return http.request({
    url: `/yzfl/storeAdmin/balanceWithdrawal`,
    method: "POST",
    data,
  });
}

export function getCopy(data) {
  return http.request({
    url: `/yzfl/storeAdmin/getCopy`,
    method: "POST",
    data,
  });
}

export function delStoreAllBanner(data) {
  return http.request({
    url: `/yzfl/storeAdmin/delStoreAllBanner`,
    method: "POST",
    data,
  });
}

export function withdrawalList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/withdrawalList`,
    method: "POST",
    data,
  });
}

export function orderDetails(data) {
  return http.request({
    url: `/yzfl/storeAdmin/orderDetails`,
    method: "POST",
    data,
  });
}

export function sendOrder(data) {
  return http.request({
    url: `/yzfl/storeAdmin/sendOrder`,
    method: "POST",
    data,
  });
}

export function orderRefund(data) {
  return http.request({
    url: `/yzfl/storeAdmin/orderRefund`,
    method: "POST",
    data,
  });
}

export function postsList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/postsList`,
    method: "POST",
    data,
  });
}

// /yzfl/storeAdmin/delPosts
export function delPosts(data) {
  return http.request({
    url: `/yzfl/storeAdmin/delPosts`,
    method: "POST",
    data,
  });
}
// /yzfl/storeAdmin/postsData
export function postsData(data) {
  return http.request({
    url: `/yzfl/storeAdmin/postsData`,
    method: "POST",
    data,
  });
}
export function addPosts(data) {
  return http.request({
    url: `/yzfl/storeAdmin/addPosts`,
    method: "POST",
    data,
  });
}

export function storeProList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/storeProList`,
    method: "POST",
    data,
  });
}

export function proTypeList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/proTypeList`,
    method: "POST",
    data,
  });
}

export function addPro(data) {
  return http.request({
    url: `/yzfl/storeAdmin/addPro`,
    method: "POST",
    data,
  });
}

export function supplierProList(data) {
  return http.request({
    url: `/yzfl/storeAdmin/supplierProList`,
    method: "POST",
    data,
  });
}

export function addSupplierPro(data) {
  return http.request({
    url: `/yzfl/storeAdmin/addSupplierPro`,
    method: "POST",
    data,
  });
}

export function proDetails(data) {
  return http.request({
    url: `/yzfl/storeAdmin/proDetails`,
    method: "POST",
    data,
  });
}

export function proListing(data) {
  return http.request({
    url: `/yzfl/storeAdmin/proListing`,
    method: "POST",
    data,
  });
}

// /yzfl/storeAdmin/delPosts

export function updPro(data) {
  return http.request({
    url: `/yzfl/storeAdmin/updPro`,
    method: "POST",
    data,
  });
}

export function addStoreType(data) {
  return http.request({
    url: `/yzfl/storeAdmin/addStoreType`,
    method: "POST",
    data,
  });
}

// /yzfl/storeAdmin/updStoreType

export function updStoreType(data) {
  return http.request({
    url: `/yzfl/storeAdmin/updStoreType`,
    method: "POST",
    data,
  });
}

// /yzfl/storeAdmin/delStoreType

export function delStoreType(data) {
  return http.request({
    url: `/yzfl/storeAdmin/delStoreType`,
    method: "POST",
    data,
  });
}

export function sysType(data) {
  return http.request({
    url: `/yzfl/new/sysType`,
    method: "POST",
    data,
  });
}

export function userList(data) {
  return http.request({
    url: `/yzfl/new/userList`,
    method: "POST",
    data,
  });
}

export function userOrderData(data) {
  return http.request({
    url: `/yzfl/new/userOrderData`,
    method: "POST",
    data,
  });
}

export function newStoreData(data) {
  return http.request({
    url: `/yzfl/new/storeData`,
    method: "POST",
    data,
  });
}


export function saleStoreList(data) {
  return http.request({
    url: `/yzfl/new/saleStoreList`,
    method: "POST",
    data,
  });
}

export function saleStoreDataList(data) {
  return http.request({
    url: `/yzfl/new/saleStoreDataList`,
    method: "POST",
    data,
  });
}